# 2024/2/1 11:40 HFL
import sys

import yaml


def readfile(filename):
    """
    读取YAML文件
    :param filename:
    :return:
    """
    with open(filename,encoding='utf-8') as file:
        data = yaml.load(file, Loader=yaml.FullLoader)
        return data


# if __name__ == '__main__':
#     filename1 = '../data/register.yaml'
#     print(readfile(filename1))